<div>Search Results:</div>
{% if results %}
	<div style='-moz-border-radius: 4px; border: 1px solid #ccc'>
		<table id='usageHistory_table' class='stripeMe aslTable'>
			<tr style='background-color: #249EB8; color: white'>
				<th>Title</th>
				<th>Description</th>
				<th>Author</th>
				<th>Library</th>
				<th>Members count</th>
				<th>Entry count</th>
			</tr>
			{% for set in results %}
				<tr style='vertical-align: top'>
					<td><a class='resubscribe_link NeedMyTooltip' href='/ajax/set/subscribe.html?setKey={{ set.key|safe }}' title='Add this deck to my library.' id='searchresult{{forloop.counter}}'>{{ set.title|safe }}</a></td>
					<td>{{ set.description|safe }}</td>
					<td>{{ set.author|safe }}</td>
					<td style='width: 114px'>
						<span class='being_used_but_hidden search_result_hidden_setKey'>{{ set.key|safe }}</span>
						{% if set.current %}
							<a href='/' class='NeedMyTooltip InLibrary LibraryStatus' title='This deck is in your library' id='search_result_status{{forloop.counter}}'><img src='/images/status_green.png'/></a>
						{% else %}
							<a href='/' class='NeedMyTooltip LibraryStatus' title='This deck is not in your library' id='search_result_status{{forloop.counter}}'><img src='/images/status_gray.png'/></a>
						{% endif %}
					</td>
					<td>{{ set.subscriptionCount }}</td>
					<td>{{ set.entryCount }}</td>
				</tr>
			{% endfor %}
		</table>
	</div>
{% else %}
    <p>We did not find any deck matching your search term.</p>
{% endif %}
